<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./../assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="./../assets/lib/d_all.css" />
    <link rel="stylesheet" href="./../assets/css/article/articleList.css" />
  </head>
  <body>
    <div class="layui-card">
      <div class="layui-card-header">文章列表</div>
      <div class="layui-card-body">
        <!-- 筛选 -->
        <form class="layui-form" action="" lay-filter="cate_form">
          <div class="layui-inline">
            <select name="cate_id" lay-verify="">
            </select>
          </div>
          <div class="layui-inline">
            <select name="state" lay-verify="">
              <option value="">所有</option>
              <option value="已发布">已发布</option>
              <option value="草稿">草稿</option>
            </select>
          </div>
          <button type="button" class="layui-btn ml-20 btn_filter">筛选</button>
        </form>
        <!-- 表格 -->
        <!-- <table class="layui-table">
          <colgroup>
            <col />
            <col />
            <col />
            <col />
            <col width="200" />
          </colgroup>
          <thead>
            <tr>
              <th>文章标题</th>
              <th>分类</th>
              <th>发表时间</th>
              <th>状态</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody> </tbody>
        </table> -->
        
        <!-- 动态表格 -->
        <table id="demo" lay-filter="test"></table>
      
      </div>
    </div>

    <script type="text/html" id="cate_tbody">
      <option value="">所有</option>
      {{each data}}
      <option value="{{$value.Id}}">{{$value.name}}</option>
      {{/each}}
    </script>

    <script src="./../assets/lib/layui/layui.all.js"></script>
    <script src="./../assets/lib/jquery.js"></script>
    <script src="./../assets/lib/template-web.js"></script>
    <script src="./../assets/lib/ajaxPrefilter.js"></script>
    <script src="./../assets/js/article/articleList.js"></script>
  </body>
</html>
